/*
 * ProviderUtils.java
 * business
 *
 * Created by ChenTao on 2017/3/9.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * 提供全局的对象
 *
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/3/9 0009 16:36
 */
public class GsonProvider {

    private static Gson mGson;

    private static Gson mExposeGson;

    public static void init() {
        mGson = new Gson();
        mExposeGson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();
    }

    public static Gson getGson() {
        return mGson;
    }

    public static Gson getExposeGson() {
        return mExposeGson;
    }
}
